﻿<%@ Page Language="C#" MasterPageFile="~/Themes/ContentPage.master" EnableViewState="true" %>

<script runat="server">
    
    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
    }
</script>

<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" runat="Server">
    <script language="javascript" type="text/javascript">
        $(function () {
            $(".proList li").hover(function () {

                $(this).find(".info_box").show();
            },
			function () {

			    $(this).find(".info_box").hide();
			});
        });
    
    </script>

    <lswweb:ProductList ID="products" Status="Enabled" OnBuilderLinkUrlHandler="Urls.ProductShow" PageSize="16" runat="server">
        <Skin>
            <asp:Repeater ID="gridView" runat="server">
                <HeaderTemplate>
                     <ul class="proList">
                </HeaderTemplate>
                <ItemTemplate>
                    <li>    
                        <a href="<%# products.BuilderLinkUrl(Container.DataItem) %>">
                            <img src="<%# Eval("ImageUrl") %>" width="170px" height="205px" class="proImg" /></a>
                        <p>
                            <a href="<%# products.BuilderLinkUrl(Container.DataItem) %>"><%# TreeTables.ProductCategories.GetCategoryName(Eval("ProductCategoryId").As<int>())%></a></p>
                        <a class="info_box" href="<%# products.BuilderLinkUrl(Container.DataItem) %>">
                            <dl>
                                <dt><%# Eval("Title") %> </dt>
                                <dd>
                                    <%= this.Strings["Product_Other1"]%><%# Eval("Other").As<string>().Split('|')[0]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other2"]%><%# Eval("Other").As<string>().Split('|')[1]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other3"]%><%# Eval("Other").As<string>().Split('|')[2]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other4"]%><%# Eval("Other").As<string>().Split('|')[3]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other5"]%><%# Eval("Other").As<string>().Split('|')[4]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other6"]%><%# Eval("Other").As<string>().Split('|')[5]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other7"]%><%# Eval("Other").As<string>().Split('|')[6]%>
                                </dd>
                                <dd>
                                    <%= this.Strings["Product_Other8"]%><%# Eval("Other").As<string>().Split('|')[7]%>
                                </dd>
                            </dl>
                        </a>
                    </li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </Skin>
    </lswweb:ProductList>
</asp:Content>
